package com.okyai.qa.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.alibaba.fastjson.annotation.JSONField;
import com.okyai.common.annotation.Excel;
import com.okyai.common.core.domain.BaseEntity;
import com.okyai.qa.domain.vo.QuestionDiv;

/**
 * 问卷对象 qa_questionnaire
 * 
 * @author okyai
 * @date 2021-03-16
 */
public class Questionnaire extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问卷主键 */
    private Long questionnaireId;

    /** 问卷名称 */
    @Excel(name = "问卷名称")
    private String questionnaireName;

    /** 问卷分类 */
    @Excel(name = "问卷分类")
    private Long categoryId;

    /** 是否显示题号 */
    @Excel(name = "是否显示题号")
    private String isShowNo;

    /** 是否发布 */
    @Excel(name = "是否发布")
    private String isPublish;

    /** 租户主键 */
    @Excel(name = "租户主键")
    private Long tenantId;

    /** 问卷题目信息 */
    private List<QuestionnaireQuestions> questionnaireQuestionsList;
    
    /** 这是答题DIV */
    @JSONField(serialize=false)
    private List<QuestionDiv> questions;

    public void setQuestionnaireId(Long questionnaireId) 
    {
        this.questionnaireId = questionnaireId;
    }

    public Long getQuestionnaireId() 
    {
        return questionnaireId;
    }
    public void setQuestionnaireName(String questionnaireName) 
    {
        this.questionnaireName = questionnaireName;
    }

    public String getQuestionnaireName() 
    {
        return questionnaireName;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setIsShowNo(String isShowNo) 
    {
        this.isShowNo = isShowNo;
    }

    public String getIsShowNo() 
    {
        return isShowNo;
    }
    public void setIsPublish(String isPublish) 
    {
        this.isPublish = isPublish;
    }

    public String getIsPublish() 
    {
        return isPublish;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    public List<QuestionnaireQuestions> getQuestionnaireQuestionsList()
    {
        return questionnaireQuestionsList;
    }

    public void setQuestionnaireQuestionsList(List<QuestionnaireQuestions> questionnaireQuestionsList)
    {
        this.questionnaireQuestionsList = questionnaireQuestionsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionnaireId", getQuestionnaireId())
            .append("questionnaireName", getQuestionnaireName())
            .append("categoryId", getCategoryId())
            .append("isShowNo", getIsShowNo())
            .append("isPublish", getIsPublish())
            .append("tenantId", getTenantId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("questionnaireQuestionsList", getQuestionnaireQuestionsList())
            .toString();
    }

	public List<QuestionDiv> getQuestions() {
		return questions;
	}

	public void setQuestions(List<QuestionDiv> questions) {
		this.questions = questions;
	}
    
    
}
